package io.seata.sample.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.math.BigDecimal;

/**
 * @author wangzhen
 */
@FeignClient(value = "order-server")
public interface OrderApi {

    /**
     * 修改订单金额
     * @param userId
     * @param money
     * @param orderId
     * @return
     */
    @RequestMapping("/order/update")
    void update(@RequestParam("userId") Long userId,
                @RequestParam("money") BigDecimal money,
                @RequestParam("orderId") Long orderId);
}
